import { defineAsyncComponent } from 'vue'

const files = import.meta.globEager('/@/directive/*.ts')

Object.entries(files).forEach(([path, component]) => {
    console.log(path);
    console.log(component);
//   const name = path.match(/\.\/(\S*)\./)[1]
//   const asyncComponent = defineAsyncComponent(() => component)
//   app.component(name, asyncComponent)
})